<template>
  <el-form label-width="100px">
    <el-row>
      <!-- <el-col :span="12">
          <el-form-item label="考评对象:">
            <span>{{ item.name }}</span>
          </el-form-item>
      </el-col>-->
      <el-col :span="6">
        <el-form-item label="执行者:">{{ item.executorUser }}</el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="执行时间:">{{ item.executorTime ? formatTime(item.executorTime) : null }}</el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="考评任务总分:">
          <span>{{ item.planTotalScore }}</span>
        </el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="考评任务得分:">
          <span>{{ item.planScore }}</span>
        </el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="考评总金额:">{{ item.planMoney }}</el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="考评总结:">{{ item.evalSummary }}</el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
import { judgeRange, judgeEvalState, judgeType } from '@/utils/util'
export default {
  data() {
    return {
      item: this.$route.params.row || getSession('finishDetailRow')
    }
  },
  methods: {
    // show(obj) {
    //   this.item = Object.assign({}, obj)
    // },
    judgeType(num) {
      return judgeType(num)
    },
    judgeState(num) {
      return judgeEvalState(num)
    },
    judgeRange(num) {
      return judgeRange(num)
    }
  }
}
</script>

<style scoped>
.el-form-item {
  margin-bottom: 0;
}
</style>